﻿#include "MusicPlayer.h"
#include <QtWidgets/QApplication>
#include"OnlionMusicInfo.h"

int main(int argc, char *argv[])
{
    const QString AppId("MusicPlayer");
    //做一个应用单例
    //...

    QApplication a(argc, argv);

    qRegisterMetaType<Song>("Song");
    qRegisterMetaType<QList<Song> >("QList<Song>");
    qRegisterMetaType<OnlionMusicInfo>("OnlionMusicInfo");
    qRegisterMetaType<QList<OnlionMusicInfo>>("QList<OnlionMusicInfo>");

    MusicPlayer w;

    w.show();

    return a.exec();
}
